﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="baogia.ascx.cs" Inherits="Shop_Phone.UserControls.baogia" %>
<div>
    <div>
        <p class="title" style="text-align: left; text-transform: uppercase;">
            Bảng báo giá điện thoại</p>
        <div id="ctl00_MainContent_baogiacoanh">
            <script type="text/javascript">
                function isNumberKey(evt) {
                    var charCode = (evt.which) ? evt.which : event.keyCode
                    if (charCode != 46 && charCode > 31
            && (charCode < 48 || charCode > 57))
                        return false;
                    return true;
                }
                function eventEnter(e) {
                    if (e.keyCode == 13) {
                        e.preventDefault();
                        document.getElementById('ctl00_MainContent__BaoGiaCoAnh_btnTimKiem').click();
                    }
                }
                function DropMucGiaChange() {
                    document.getElementById('ctl00_MainContent__BaoGiaCoAnh_btnTimKiem').click();
                }
            </script>
            <style type="text/css" media="screen">
                .GroupHeaderRowStyle
                {
                    background-color: #E84940;
                    text-align: left;
                    font-weight: bold;
                    color: White;
                }
                .pager a
                {
                    border: 1px solid #EDF5FF;
                    color: #0088CC !important;
                    text-decoration: underline;
                    padding: 2px 5px;
                }
                .pager span
                {
                    background-color: #0067A5;
                    border: 1px solid #DBEAFF;
                    color: #FFFFFF;
                    padding: 2px 5px;
                }
                .pager a:hover
                {
                    color: #1E90FF;
                }
            </style>
            <table style="width: 100%;">
                <tbody>
                    <tr>
                        <td>
                            <input name="ctl00$MainContent$_BaoGiaCoAnh$txtTenHH" type="text" id="ctl00_MainContent__BaoGiaCoAnh_txtTenHH"
                                style="margin: 0px; width: 95%; padding: 4px;" onkeypress="return eventEnter(event)"
                                class="input" placeholder="Tên sản phẩm...">
                        </td>
                        <td style="vertical-align: top;">
                            <select name="ctl00$MainContent$_BaoGiaCoAnh$DropHangSX" onchange="javascript:setTimeout('__doPostBack(\'ctl00$MainContent$_BaoGiaCoAnh$DropHangSX\',\'\')', 0)"
                                id="ctl00_MainContent__BaoGiaCoAnh_DropHangSX" class="text" style="width: 98%;
                                margin-right: 0px">
                                <option selected="selected" value="0">Chọn hãng..</option>
                                <option value="001">NOKIA</option>
                                <option value="002">SAMSUNG</option>
                                <option value="003">APPLE-iPHONE</option>
                                <option value="015">GIONEE</option>
                                <option value="004">Q-MOBILE</option>
                                <option value="005">MASSTEL</option>
                                <option value="006">FPT</option>
                                <option value="017">LENOVO</option>
                                <option value="007">Q-SMART</option>
                                <option value="008">CONNSPEED</option>
                                <option value="009">LUXURY</option>
                                <option value="010">MOBIISTAR</option>
                                <option value="011">OPPO</option>
                                <option value="012">SONY</option>
                                <option value="013">HTC</option>
                                <option value="014">ZTE</option>
                                <option value="018">ASUS</option>
                                <option value="016">NETFONE</option>
                                <option value="019">HUAWEI</option>
                                <option value="020">PHILIPS</option>
                            </select>
                        </td>
                        <td style="vertical-align: top;">
                            <select name="ctl00$MainContent$_BaoGiaCoAnh$DropNhomHang" onchange="javascript:setTimeout('__doPostBack(\'ctl00$MainContent$_BaoGiaCoAnh$DropNhomHang\',\'\')', 0)"
                                id="ctl00_MainContent__BaoGiaCoAnh_DropNhomHang" class="text" style="width: 98%;
                                margin-right: 0px">
                                <option selected="selected" value="0">Chọn nhóm hàng...</option>
                                <option value="004">Điện thoại cao cấp</option>
                                <option value="001">Điện thoại Smartphone</option>
                                <option value="002">Điện thoại phổ thông</option>
                                <option value="003">Điện thoại giá rẻ</option>
                            </select>
                        </td>
                        <td>
                            <select name="ctl00$MainContent$_BaoGiaCoAnh$DropMucGia" id="ctl00_MainContent__BaoGiaCoAnh_DropMucGia"
                                onchange="DropMucGiaChange();" class="text" style="width: 98%">
                                <option selected="selected" value="0">Chọn mức giá...</option>
                                <option value="1">Giá dưới 1,5 triệu</option>
                                <option value="2">Giá từ 1,5 triệu đến 4 triệu</option>
                                <option value="3">Giá từ 4 triệu đến 6 triệu</option>
                                <option value="4">Giá từ 6 triệu đến 9 triệu</option>
                                <option value="5">Giá từ 9 triệu đến 12 triệu</option>
                                <option value="6">Giá trên 12 triệu</option>
                            </select>
                        </td>
                        <td>
                            <input type="submit" name="ctl00$MainContent$_BaoGiaCoAnh$btnTimKiem" value="Tìm kiếm"
                                id="ctl00_MainContent__BaoGiaCoAnh_btnTimKiem" class="button">
                        </td>
                    </tr>
                </tbody>
            </table>
            <div>
                <table cellspacing="0" cellpadding="3" rules="all" border="1" id="ctl00_MainContent__BaoGiaCoAnh_GridBaoGia"
                    style="background-color: White; border-color: #CCCCCC; border-width: 1px; border-style: None;
                    font-size: 12px; width: 100%; border-collapse: collapse;">
                    <tbody>
                        <tr style="color: White; background-color: #318DD5; font-weight: bold;">
                            <th scope="col">
                                STT
                            </th>
                            <th scope="col">
                                Hình ảnh
                            </th>
                            <th scope="col">
                                Tên điện thoại
                            </th>
                            <th scope="col">
                                Giá lẻ
                            </th>
                            <th scope="col">
                                Số lượng
                            </th>
                            <th scope="col">
                                Tình trạng
                            </th>
                            <th scope="col">
                                Đặt hàng
                            </th>
                        </tr>
                        <asp:Repeater ID="rptsanpham" runat="server">
                            <ItemTemplate>
                                <tr style="color: #000066;">
                                    <td align="center" style="width: 5%;">
                                        100
                                    </td>
                                    <td style="width: 70px;">
                                        <a id="productImageWrapID_<%# Eval("masanpham")%>" class="preview" href="#" title="6438158586086">
                                            <img src="<%# Eval("hinhanh")%>" title="<%# Eval("tensanpham")%>" alt="" style="max-height: 50px;
                                                max-width: 50px;">
                                        </a>
                                    </td>
                                    <td>
                                        <%# Eval("tensanpham")%>
                                    </td>
                                    <td align="right" style="width: 80px;">
                                        <%# Eval("giasanpham")%>
                                    </td>
                                    <td style="width: 70px;">
                                        <input id="quantity_6438158586086" type="text" value="<%# Eval("soluong")%>" onkeypress="return isNumberKey(event)"
                                            style="margin-bottom: 1px; width: 70px; text-align: right;">
                                    </td>
                                    <td align="center" valign="middle" style="width: 100px;">
                                        <%# tinhtranghang(Eval("soluong"))%>
                                    </td>
                                    <td style="width: 70px;">
                                        <a href='baogia.aspx?action=add&amp;id=<%# Eval("masanpham")%>&amp;name=<%# Eval("tensanpham")%>&amp;price=<%# Eval("giasanpham")%>'
                                            class="bt-dathang add2cart" title="Thêm sản phẩm này vào giỏ hàng" data-id="<%# Eval("masanpham")%>">
                                            Chọn mua</a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr class="pager" align="left" style="color: #000066; background-color: White;">
                            <td colspan="7">
                                <table border="0">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <span>1</span>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$2')"
                                                    style="color: #000066;">2</a>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$3')"
                                                    style="color: #000066;">3</a>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$4')"
                                                    style="color: #000066;">4</a>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$5')"
                                                    style="color: #000066;">5</a>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$6')"
                                                    style="color: #000066;">...</a>
                                            </td>
                                            <td>
                                                <a href="javascript:__doPostBack('ctl00$MainContent$_BaoGiaCoAnh$GridBaoGia','Page$Last')"
                                                    style="color: #000066;">Cuối</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
